package com.softeem.service;

import com.softeem.bean.Oss;
import com.softeem.utils.Page;

import java.sql.SQLException;
import java.util.List;

public interface OssService {

    public void saveOrUpdate(Oss book)  throws SQLException;

    public void deleteOssById(Integer id)  throws SQLException;

    public void updatePermission(Integer id,String permission)  throws SQLException;

    public void updateOss(Oss book)  throws SQLException;

    public Oss queryOssById(Integer id)  throws SQLException;

    public Oss queryOssByName(String name)  throws SQLException;

    public List<Oss> queryOss()  throws SQLException;

    public Page<Oss> page(int pageNo, int pageSize)  throws SQLException;

    public Page<Oss> page(int pageNo, int pageSize, String name, String author, Double min , Double max) throws SQLException;
}